package com.hpeng.basic.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hpeng.basic.dao.ProdStatusMstDao;
import com.hpeng.basic.service.ProdStatusMstManager;
import com.hpeng.sys.model.ProdStatusMst;
import com.hpeng.util.GenericDaoImpl;
import com.hpeng.util.Pagination;
@Component("prodStatusMstManager")
public class ProdStatusMstManagerImpl extends GenericDaoImpl<ProdStatusMst, String> implements
		ProdStatusMstManager {
@Resource
private ProdStatusMstDao prodStatusMstDao;
	public ProdStatusMst addProdStatusMst(ProdStatusMst prodStatusMst) {
		// TODO Auto-generated method stub
		return prodStatusMstDao.save(prodStatusMst);
	}

	public void delProdStatusMst(String proid) {
		// TODO Auto-generated method stub
		prodStatusMstDao.remove(proid);
	}

	public List<ProdStatusMst> findProdStatusMst() {
		// TODO Auto-generated method stub
		return prodStatusMstDao.getAll();
	}

	public ProdStatusMst findProdStatusMstById(String proid) {
		// TODO Auto-generated method stub
		return prodStatusMstDao.get(proid);
	}

	public Pagination<ProdStatusMst> getPagination(int pageNumber,
			String[] hql, String order) {
		// TODO Auto-generated method stub
		return prodStatusMstDao.getPagination(pageNumber, hql, order);
	}

	public void updateProdStatusMst(ProdStatusMst prodStatusMst) {
		// TODO Auto-generated method stub
		prodStatusMstDao.update(prodStatusMst);
	}

}
